package com.dms.vuemusic.mapper;

import com.dms.vuemusic.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface UserMapper {
    @Select("select * from user where username=#{username}")
    User findUserByName(String username);
    @Select("select  * from user where username=#{username} and password=#{password}")
    User findUserByNameAndPassword(String username,String password);
}
